package cn.knight.basic.service;

import cn.knight.basic.query.BaseQuery;
import cn.knight.basic.utils.PageList;


import java.util.List;

public interface IBaseService<T> {
    List<T> loadAll();

    T loadById(Long id);

    void save(T t);

    void update(T t);

    void remove(Long id);

    // 分页+高级查询
    PageList<T> queryRows(BaseQuery baseQuery);


    void patchDel(Long[] ids);
}
